package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

class Solution6406 {
    public int maximizeSum(int[] nums, int k) {
        return ArrayUtils.maximizeSum(nums, k);
    }
}

public class leetcode6406 {
    public static void main(String[] args) {
        Solution6406 solution6406 = new Solution6406();
        int[] nums = {1, 2, 3, 4, 5};
        int[] nums1 = {5, 5, 5};
        System.out.println(solution6406.maximizeSum(nums, 3));
        System.out.println(solution6406.maximizeSum(nums1, 2));
    }
}
